import http from '@/common/service/service.js';

export default {
	createQuestion(data){
		return http.post('/question/add', data)
	},
	updateQuestionInfo(data){
		return http.post('/question/update/info', data)
	},
	updateQuestionVisibility(data){
		return http.post('/question/update/info', data)
	},
	getQuestionInfo(params) {
		return http.get('/question/info', params)
	},
	pageQuestion(params) {
		return http.get('/question/page', params)
	},
	listHotQuestion(params) {
		return http.get('/question/list-hot', params)
	},
	changeFollowStatus(params) {
		return http.get('/question/user/change', params)
	},
	listQuestionBonfire(params) {
		return http.get('/bonfire/list', params)
	},
	



	createPoint(data){
		return http.post('/point/add', data)
	},
	updatePoint(data){
		return http.post('/point/update', data)
	},
	getPointInfo(params) {
		return http.get('/point/info', params)
	},
	listPoints(params) {
		return http.get('/point/list', params)
	},
	firePoint(params) {
		return http.get('/point/fire', params)
	},


	createAnswer(data){
		return http.post('/answer/add', data)
	},
	updateAnswer(data){
		return http.post('/answer/update', data)
	},
	pageAnswer(params) {
		return http.get('/answer/page', params)
	},
	getAnswerInfo(params) {
		return http.get('/answer/info', params)
	},
	changeAnswerLikeStatus(params) {
		return http.get('/answer/like/change', params)
	},

	createAnswerComment(data){
		return http.post('/answer/comment/add', data)
	},
	pageAnswerComment(params) {
		return http.get('/answer/comment/page', params)
	},
	changeAnswerCommentLikeStatus(params) {
		return http.get('/answer/comment/like/change', params)
	},
	
	
	manageUpdateQuestionInfo(data){
		return http.post('/manage/question/update/info', data)
	},
	manageUpdateQuestionVisibility(data){
		return http.post('/manage/question/update/visibility', data)
	},
	
	manageUpdatePointInfo(data){
		return http.post('/manage/point/update/info', data)
	},
	manageUpdatePointVisibility(data){
		return http.post('/manage/point/update/visibility', data)
	},
	
	manageUpdateAnswerInfo(data){
		return http.post('/manage/answer/update/info', data)
	},
	manageUpdateAnswerVisibility(data){
		return http.post('/manage/answer/update/visibility', data)
	},
	
	
	
	pageQuestionUser(params) {
		return http.get('/manage/question/user/page', params)
	},
	updateQuestionUserRole(params) {
		return http.get('/manage/question/user/role/update', params)
	},
	
	
	
	manageListPoint(params) {
		return http.get('/manage/point/list', params)
	},
	manageUpdatePoint(data){
		return http.post('/manage/point/update', data)
	},
	
	managePageAnswer(params) {
		return http.get('/manage/answer/page', params)
	},
	manageUpdateAnswer(data){
		return http.post('/manage/answer/update', data)
	},



}
